﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xc.DataAccess.Core;
using Xc.DataAccess.HyperTerminalCore.Services;

namespace Xc.Logics.HyperTerminalCore.Tcp.ViewModels
{
    public class MainWindowModel:ViewModelBase
    {
        int port =1000;
        public int Port { get => port; set
            {
                if (port == value)
                {
                    return;
                }
                port = value;
                RaisedPropertyChanged();

            }
        }
        ObservableCollection<ITcpServerService> tcpServerOptions = new ObservableCollection<ITcpServerService>();
        public ObservableCollection<ITcpServerService> TcpServerOptions
        {
            get => tcpServerOptions;
            set
            {
                if (tcpServerOptions == value)
                {
                    return;
                }

                tcpServerOptions = value;
                RaisedPropertyChanged();
            }
        }
    }
}
